package ri.core;

import org.apache.lucene.index.FieldInvertState;
import org.apache.lucene.search.DefaultSimilarity;

public class SimilarityTF extends DefaultSimilarity{

	@Override
	public float computeNorm(String arg0, FieldInvertState arg1) {
		return 1;
	}

	@Override
	public float coord(int arg0, int arg1) {
		return 1;
	}

	@Override
	public float queryNorm(float arg0) {
		return 1;
	}
	
	@Override
	public float tf(float freq) {
		return freq;
	}
	
	@Override
	public float tf(int freq) {
		return freq;
	}

	@Override
	public float sloppyFreq(int arg0) {
		return 1;
	}

}
